package com.ease.util {

   /**
    * Represents an error that occurred while servicing a request.
    */
   public class RequestError extends Error {
      /**
       * Initializes an instance of this class.
       *
       * @param message
       *    A localized description of the error.
       */
      public function RequestError( message:String ) {
         super( message );
      }

      /** Type of the object whose request errored out. */
      public var requestedObjectType:Class;

      /** Optional info representing the context in which the request was made. */
      [Optional]
      public var context:Object;

      /** The underlying or original cause of the error, if any. */
      [Optional]
      public var cause:Error;
   } // class

}